package com.tian.client;

import com.tian.common.CommonResult;
import com.tian.dto.OrderUseCouponDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * {@code @description:} 查询支付单失败的优惠券使用情况
 *
 * @author tianwc 公众号：Java后端技术全栈
 * 在线刷题 1200+java面试题和1000+篇技术文章：<a href="https://woaijava.cc/">博客地址</a>
 * {@code @date:} 2024-11-03 19:44
 * {@code @version:} 1.0
 */
@Component
@FeignClient(contextId = "messageUseCouponFailedClient", value = "charge-pay")
public interface MessageUseCouponFailedClient {

    @GetMapping("/pay/query/{orderId}")
    CommonResult<List<OrderUseCouponDto>> query(@PathVariable Long orderId);
}
